// 会员管理
import request from '@/utils/request'
export function fetchList(params) {
  return request({
    url: '/crm/member/list',
    method: 'get',
    params: params
  })
}
// 
export function salesCountList(merchantId) {
  return request({
    url: '/crm/member/salesCountList?merchantId='+merchantId,
    method: 'get',
    merchantId:merchantId
  })
}
export function getMemberDetail(memberId, data) {
  return request({
    url: '/crm/member/getMemberDetail?memberId=' + memberId,
    method: 'get',
    data: data
  })
}
export function getRebatedetails(memberId,params) {
  return request({
    url: '/crm/member/getCommissionList?memberId=' + memberId,
    method: 'get',
    params: params
  })
}
export function getAccountdetails(memberId,params) {
  return request({
    url: '/crm/member/getAccountRecordList?memberId=' + memberId,
    method: 'get',
    params: params
  })
}
export function getPointsdetails(memberId,params) {
  return request({
    url: '/crm/member/getIntegralRecordList?memberId=' + memberId,
    method: 'get',
    params: params
  })
}
// 
